<ul id="<%= @table.TableName %>_edit" title="<%= @table.TableName %> Edit" selected="true">
<li>

<form name='main_form' id="main_form"  action='edit_save' method='POST'  title="default" class="panel"  selected="true">
    <a href="edit?action=new">[Add]</a>
    <a href="javascript:saveRecord(false);">[Save]</a>
    <a href="javascript:saveRecord(true);">[Save & Close]</a>
    <a href="javascript:deleteRecord();">[Delete]</a>
    <a href="javascript:closeRecord()">[Close]</a>
	<hr>
	
   <fieldset> 
		<input type="hidden" name="key" value="{{record.key}}">
		<input type="hidden" name="close_record" value="0">

		<% for col in @table.Columns %>
		<div class="row"> 
			<label for="<%= col.ColumnName %>" style="text-overflow: ellipse"><%= get_human_db_ref(col.ColumnName) %></label> 
			<input type='text' name='<%= col.ColumnName %>' 
			       id='<%= col.ColumnName %>' 
				   size='50' 
				   value='{{record.<%= col.ColumnName %>}}'>
		</div>
		<% end %>
	</fieldset> 	
</form>


</li>
</ul>